package com.nineclock.attendance.service;

import com.nineclock.attendance.dto.AttendHolidayDTO;
import com.nineclock.attendance.dto.AttendOvertimeRuleDTO;
import com.nineclock.common.entity.PageResult;

import java.util.HashMap;

public interface AttendHolidayService {

    /**
     * 接口名称：考勤: 假期管理
     * 接口路径：GET/atte/rule/holiday
     */
    PageResult<AttendHolidayDTO> queryHoliday(Integer page, Integer pageSize);

    PageResult<AttendOvertimeRuleDTO> queryOverTime(Integer page, Integer pageSize);

    AttendOvertimeRuleDTO queryOverTimeById(Long id);

   void deleteOverTimeById(Long id);

    void insert(AttendOvertimeRuleDTO overtimeRuleDTO);


    /**
     * 接口名称：考勤: 更新假期
     * 接口路径：GET/atte/rule/holiday/{id}
     */
    void updateHoliday(Long id, AttendHolidayDTO holidayDTO);

    /**
     * 接口名称：考勤: 删除假期
     * 接口路径：Delete/atte/rule/holiday/{id}
     */
    void removeHoliday(Long id);

    /**
     * 接口名称：考勤: 添加假期
     * 接口路径：Post/atte/rule/holiday
     */
    void addHoliday(HashMap<String, Object> map);
}
